    {include file="../view/head" /}
    <style>
    /*页面自定义样式*/
    #user_list .panel-heading>form{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 40px;
    }
    #user_list .panel-heading>form>div>label{
        width: 100%;
        background: #666;
        color: #fff;
        border-radius: 4px 4px 0 0;
        border: 1px solid #666;
        margin: 0;
        text-align: center;
    }
    #user_list .panel-heading>form>div>.form-control{
        border-radius: 0 0 4px 4px;
        border: 1px solid #666;
        padding: 0;
        height: auto;
    }
    .sfzimg>img{height:45px;}
    .sfzimg:hover{
        position: fixed;
        left: 10%;
        top: 10%;
        width: 80%;
        height: 80%;
        z-index: 99;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .sfzimg:hover>img{
        width: auto;
        height: auto;
        max-height: 100%;
        max-width: 100%;
    }
    </style>
    </head>
    <body>
        {include file="../view/header" /}
        {include file="../view/sidebar" /}
        {include file="../view/right-sidebar" /}
        <!-- Start #content -->
        <div id="content">
            <!-- Start .content-wrapper -->
            <div class="content-wrapper">
                <div class="row">
                    <!-- Start .row -->
                    <!-- Start .page-header -->
                    <div class="col-lg-12 heading hidden-xs hidden-sm">
                        <!-- Start .bredcrumb -->
                        <ul id="crumb" class="breadcrumb"></ul>
                        <!-- End .breadcrumb -->
                    </div>
                    <!-- End .page-header -->
                </div>
                <!-- End .row -->
                <div class="outlet">
                    <!-- Start .outlet -->
                    <!-- Page start here ( usual with .row ) -->
                    <div class="row">
                        <div class="col-md-12" id="user_list">
                            <!-- col-lg-12 start here -->
                            <div class="panel panel-default toggle panelRefresh">
                                <!-- Start .panel -->
                                <div class="panel-heading" style="padding: 10px 15px;">
                                    <form action="{:url('users/shiming_list')}" method="get">
                                        {:token()}
                                        <a href="{:url('users/shiming_list')}" class="btn btn-primary">恢复<br>默认</a>
                                        <div style="width:110px;">
                                            <label>搜索用户</label>
                                            <input class="form-control" type="number" name="uname" value="{$param.uname?:''}" oninput="if(value.length>11)value=value.slice(0,11)">
                                        </div>
                                        <div style="width:100px;">
                                            <label>状态</label>
                                            <select name="zt" class="form-control" value="{$param.zt?:''}">
                                                <option value="all" {if condition='$param.zt eq "all"'} selected {/if}>全部</option>
                                                <option value="1" {if condition='$param.zt eq "1"'} selected {/if}>已审核</option>
                                                <option value="2" {if condition='$param.zt eq "2"'} selected {/if}>已驳回</option>
                                                <option value="3" {if condition='$param.zt eq "3"'} selected {/if}>未审核</option>
                                            </select>
                                        </div>
                                        <button type="submit" class="btn btn-primary">筛<br/>选</button>
                                    </form>
                                <div class="panel-body">
                                    <table class="table table-bordered table-hover table-striped">
                                        <thead>
                                            <tr>
                                                <th class="per5">
                                                    <label class="checkbox">
                                                        <input class="check-all" type="checkbox">
                                                    </label>
                                                </th>
                                                <th>用户</th>
                                                <th>性别</th>
                                                <th>姓名</th>
                                                <th>身份证号</th>
                                                <th>正面照</th>
                                                <th>反面照</th>
                                                <th>手持照</th>
                                                <th>申请时间</th>
                                                <th>状态</th>
                                                <th>操作</th>
                                                <th>回复原因</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        {foreach $lists as $list}
                                            <tr>
                                                <td>
                                                    <label class="checkbox">
                                                        <input class="check" type="checkbox" value="{$list.id}">
                                                    </label>
                                                </td>
                                                <td>{$list.uname}</td>
                                                <td>
                                                    {if condition='$list.sex eq "0"'}
                                                        <span class="text-warning">未知</span>
                                                    {elseif condition='$list.sex eq "1"' /}
                                                        <span class="text-info">男</span>
                                                    {elseif condition='$list.sex eq "2"' /}
                                                        <span class="text-danger">女</span>
                                                    {elseif condition='$list.sex eq "3"' /}
                                                        <span class="text-warning">保密</span>
                                                    {/if}
                                                </td>
                                                <td>{$list.truename}</td>
                                                <td>{$list.sfz}</td>
                                                <td><a class="sfzimg" href="{$oss_prefix}{$list.sfz1}" target="_blank"><img src="{$oss_prefix}{$list.sfz1}"></a></td>
                                                <td><a class="sfzimg" href="{$oss_prefix}{$list.sfz2}" target="_blank"><img src="{$oss_prefix}{$list.sfz2}"></a></td>
                                                <td><a class="sfzimg" href="{$oss_prefix}{$list.shouchi}" target="_blank"><img src="{$oss_prefix}{$list.shouchi}"></a></td>
                                                <td>{$list.time|date='Y-m-d H:i:s',###}</td>
                                                <td>
                                                    {if condition='$list.zt eq "1"'}
                                                        <span class="text-success">已实名</span>
                                                    {elseif condition='$list.zt eq "2"' /}
                                                        <span class="text-danger">已驳回</span>
                                                    {elseif condition='$list.zt eq "3"' /}
                                                        <span class="text-info">未审核</span>
                                                    {/if}
                                                </td>
                                                <td>
                                                    {if condition='$list.zt eq "1"'}
                                                        <a href="{:url('users/shiming_zt',['id'=>$list.id,'zt'=>2])}" class="mt5 btn btn-xs btn-danger">驳回</a>
                                                    {elseif condition='$list.zt eq "2"' /}
                                                        <a href="{:url('users/shiming_zt',['id'=>$list.id,'zt'=>1])}" class="mt5 btn btn-xs btn-info">通过</a>
                                                    {elseif condition='$list.zt eq "3"' /}
                                                        <a href="{:url('users/shiming_zt',['id'=>$list.id,'zt'=>1])}" class="mt5 btn btn-xs btn-info">通过</a>&nbsp;
                                                        <a href="{:url('users/shiming_zt',['id'=>$list.id,'zt'=>2])}" class="mt5 btn btn-xs btn-danger">驳回</a>
                                                    {/if}
                                                </td>
                                                <td>
                                                    <div class="input-group">
                                                        <textarea class="form-control" id="note_{$list.id}" >{$list.note}</textarea>
                                                        <span class="input-group-addon p0">
                                                            <button class="btn btn-info btn-xs" style="height: 100%;" type="button" onclick="note('{$list.id}')">修<br/>改</button>
                                                        </span>
                                                    </div>
                                                </td>
                                            </tr>
                                        {/foreach}
                                        </tbody>
                                    </table>
                                    <div class="row">
                                        <div class="col-md-6">
                                            {$lists->render()}
                                        </div>
                                        <div class="col-md-6">
                                            <p>总数：{$lists->total()}</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- Page End here -->
                </div>
                <!-- End .outlet -->
            </div>
            <!-- End .content-wrapper -->
            <div class="clearfix"></div>
        </div>
        <!-- End #content -->
        {include file="../view/foot" /}
        <script src="/public/theme/win10/assets/plugins/forms/checkall/jquery.checkAll.js"></script>
        <script>
            $('.table').checkAll({
                masterCheckbox: '.check-all',
                otherCheckboxes: '.check'
            });
            function note(id){
                // console.log(id);
                var note = $('#note_'+id).val();
                // console.log(note);
                $.post("{:url('users/shiming_note')}",{"id":id,"note":note},function(data){
                    // console.log(data);
                    if(data.zt==1){
                        myalert = jqueryAlert({
                            'icon'    : '/public/chajian/alert-master/img/right.png',
                            'content' : data.msg,
                            'closeTime' : 2000,
                        });
                    }else{
                        myalert = jqueryAlert({
                            'icon'    : '/public/chajian/alert-master/img/error.png',
                            'content' : data.msg,
                            'closeTime' : 2000,
                        });
                    }
                }, "json");
            }
        </script>
    </body>
</html>